package com.passion.enums;

import lombok.Getter;

/**
 * @program offline-e-commerce-data-warehouse
 * @Description
 * @Author limeihua
 * @Date 2024/09/28 19:17
 * @Version 1.0
 */
@Getter
public enum ExceptionCode {
    SUCCESS(200, "成功"),

    FAIL(201, "失败"),
    TYPE_ERROR(500, "任务类型异常, 任务类型只能是（0，1）");

    private final Integer code;
    private final String message;

    ExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
